<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

if ( ! function_exists('reformat_date')) {
	function reformat_date($date) {
		$pieces = explode('-', $date);
		
		if ($pieces[2][0] == '0') {
			$pieces[2] = $pieces[2][1];
		}
		
		return $pieces[2] . '/' . $pieces[1] . '/' . $pieces[0];
	}
}

/* End of file date2_helper.php */
/* Location: ./application/helpers/date2_helper.php */